using AutoMapper;
using ABPLHQCS.Books;
using ABPLHQCS.FormItems;
using ABPLHQCS.FormInstances;
using ABPLHQCS.Departments;
using ABPLHQCS.Categories;

namespace ABPLHQCS;

public class ABPLHQCSApplicationAutoMapperProfile : Profile
{
    public ABPLHQCSApplicationAutoMapperProfile()
    {
        CreateMap<Book, BookDto>();
        CreateMap<CreateUpdateBookDto, Book>();

        CreateMap<CreateUpdateFormItemDto, FormItem>();
        CreateMap<FormItem, FormItemDto>();


        CreateMap<FormInstanceCreateAndUpdateDto, FormInstance>();
        CreateMap<FormInstance, FormInstanceDto>();

        CreateMap<Department, DepartmentDto>();
        CreateMap<CreateUpdateDepartmentDto, Department>();


        CreateMap<FormCategory, FormCategoryDto>();
        CreateMap<UpdateCreateFormCategoryDto, FormCategory>();
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
    }
}
